package com.xuelang.pipeline.infrastructure.pipeline.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuelang.pipeline.domain.pipeline.CacheSetting;
import com.xuelang.pipeline.infrastructure.pipeline.dataobject.CacheSettingDO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>流水线变量配置Mapper类</p>
 *
 * @author : yixin.lys
 * @date : 2024-06-13 13:23
 **/
public interface CacheSettingMapper extends BaseMapper<CacheSettingDO> {

    /**
     * 批量插入
     * @param list
     * @param creatorId
     * @param createTime
     */
    void insertBatch(@Param("list") List<CacheSetting> list,
                     @Param("creatorId") String creatorId,
                     @Param("createTime")Date createTime);

    /**
     * 批量更新
     * @param list
     * @param updaterId
     * @param updateTime
     */
    void updateBatch(@Param("list") List<CacheSetting> list,
                     @Param("updaterId") String updaterId,
                     @Param("updateTime") Date updateTime);

}
